WooCommerce\Square\Sync\Product_Import D

Total Complexity 225
Dependencies 13
Dependents 1
Total lines 1,353
Lines of code 745
Logical lines of code 433
Comment lines 300
Methods 21
Properties 0

Methods 21

Method Rating Maintainability Complexity Lines of code
save_variations()
D
24
46 150
save_product_meta()
D
28
39 122
import_products()
D
32 31 94
extract_product_data()
C
34 24 86
import_inventory()
A
40 13 59
wc_save_product_price()
A
50 14 28
record_error()
A
53 10 19
create_product_from_square_data()
A
50 8 24
update_product()
S
51 7 25
import_product()
S
53 7 21
extract_square_item_variation_data()
S
50 5 28
clear_product()
S
58 4 16
item_variation_has_matching_sku()
S
60 4 13
get_attribute_taxonomy_by_slug()
S
63 3 11
item_variation_has_missing_sku()
S
62 3 11
update_simple_product_to_variable()
S
54 2 22
save_product_images()
S
98 1 1
upload_product_image()
S
98 1 1
set_product_image_as_attachment()
S
98 1 1
get_import_api_limit()
S
74 1 4
assign_next_steps()
S
68 1 9